package com.anlu.pattern.structrue.decorator;

import com.anlu.pattern.common.entity.Bag;

public class BagDecorator implements Bag {

    //维持一个抽象构建对象的引用
    private Bag bag;

    public BagDecorator(Bag bag) {
        this.bag = bag;
    }

    @Override
    public void pack() {
        bag.pack();
    }
}
